package day03;
//if结构演示
public class IfDemo {
    public static void main(String[] args) {
        int num=5;
        if (num%2==0){
            System.out.println(num+"是偶数");
        }
        System.out.println("继续执行...");

        double price=300.0;//消费金额
        if (price>=500){//满500
            price*=0.8;//打8折
        }
        System.out.println("最终结算金额为："+price);

    }
}
